<?php
## include required files
/*******************************/ 
require_once '../../includefiles.php';
include_once("../../model/admindetails.php");
/*******************************/
## Create Objects
/*******************************/
$adminObj = new Model_AdminDetails();

if ($_GET['email']){
	$email = $_GET['email']; 
}
if ($_GET['id']){
	$id = $_GET['id']; 
}

if($email){
// this function check username Exit ot not
	 $result = $adminObj->chkUserEmailExist(trim($email), $id); 
	if(count($result) > 0){	
		if($result['email'] == $email){  
			echo 'false';
		}
	}
	else{
		echo "true";	
	}
}
unset($adminObj);
?>


